

<div id="inner">
    <form class="form" action="<?php echo base_url()?><?php echo get_segment(1)?>/<?php echo get_segment(2)?>/<?php echo $result->id?>" method="post">

       <ul>
            <li class="text">

                <label><?php echo lang('label_quantity')?> <em>*</em></label>
                
                <input type="text" name="quantity" value="<?php echo set_value('quantity',$result->quantity) ?>" \>
                <?php echo  form_error('quantity','<div class="form_error">', '</div>'); ?>
            </li>
            <li class="text">

                <label><?php echo lang('label_link')?><em>*</em></label>
                
                <input type="text" name="link" class="textleft" value="<?php echo set_value('link',$result->link) ?>" \> 
                <?php echo  form_error('link','<div class="form_error">', '</div>'); ?>
            </li>
            <li class="text">

                <label><?php echo lang('label_title')?> <em>*</em></label>
                
                <input type="text" name="title"  class="textleft" value="<?php echo set_value('title',$result->title) ?>" \> 
                <?php echo  form_error('title','<div class="form_error">', '</div>'); ?>
            </li>

            <li class="text">

                <label><?php echo lang('label_item_number')?></label>
                
                <input type="text" name="item_number" value="<?php echo set_value('item_number',$result->item_number) ?>" \> 
                <?php echo  form_error('item_number','<div class="form_error">', '</div>'); ?>
            </li>
                        <li class="text">
                <label><?php echo lang('label_price')?><em>*</em></label>
                
                <input type="text" name="prices" value="<?php echo set_value('prices',$result->price) ?>" \> 
                
                <?php echo  form_error('prices','<div class="form_error">', '</div>'); ?>
            </li>
            <li class="text">
                <label><?php echo lang('label_weight')?> <em>*</em></label>
             
                <input type="text" name="weight" value="<?php echo set_value('weight',$result->weight) ?>" \> 
                   <?php echo  form_error('weight','<div class="form_error">', '</div>'); ?>
            </li>

            <li class="text">

                <label><?php echo lang('label_bill_shiping_rate')?> </label>
                
                <input type="text" name="shipping_price" value="<?php echo set_value('shipping_price',$result->shiping_cost) ?>"  \> 
                <?php echo  form_error('shipping_price','<div class="form_error">', '</div>'); ?>
            </li>
            <li class="text">
                <label><?php echo lang('label_size')?></label>
         
                <input type="text" name="size" value="<?php echo set_value('size',$result->size) ?>" \>
                       <?php echo  form_error('size','<div class="form_error">', '</div>'); ?>
            </li>
            <li class="text">

                <label><?php echo lang('label_color')?></label>
               
                <input type="text" name="color" value="<?php echo set_value('color',$result->color) ?>" \> 
                 <?php echo  form_error('color','<div class="form_error">', '</div>'); ?>
            </li>
            <li class="text">

                <label>{item_type} </label>
                <?php echo  form_error('item_type','<div class="form_error">', '</div>'); ?>
                <?php echo form_dropdown('item_type', array('1'=>'New','2'=>'Used','3'=>'refurbed'), set_value('type',$result->item_type), 'id="select-choice-1"') ?>
            </li>



            <li class="text">
                <label>{details}</label>
                <textarea cols="60" rows="10" name="details"><? set_value('details',$result->details) ?></textarea>
            </li>
            
          <li class="text">
                <label>{battery}</label> 
                <?php echo form_dropdown('battery',array('YES'=>'YES','NO'=>'NO'), set_value('battery',$result->battery), 'id="slider-flip-m" data-role="slider" data-mini="true"') ?>
            </li>
          <li class="text">
                <label>{prefum}</label> 
                <?php echo form_dropdown('perfum',array('YES'=>'YES','NO'=>'NO'), set_value('perfum',$result->perfum), 'id="slider-flip-m" data-role="slider" data-mini="true"') ?>
            </li>

            <li class="text">
                <label>&nbsp;</label>  
                <button value="do_add" name="submit" data-theme="b" type="submit" aria-disabled="false" data-icon="true" data-iconpos="right"  >{EDIT}</button>
                
            </li>
        </ul>
    </form>
</div>
